var indicatorOptions = []
indicatorOptions = [{
  label:'崩溃次数',
  value:{
    viewKey:'crash_count',
    category:'crash',
    urlName:BlueWare.platform.toLowerCase()+'_crash_series_data'
  }
},{
  label:'崩溃率',
  value:{
    viewKey:'crash_rate',
    category:'crash',
    urlName:BlueWare.platform.toLowerCase()+'_crash_rate'
  }
}]
if(BlueWare.isSaas||BlueWare.isIOS){//saas环境时不显示崩溃率
  indicatorOptions.pop()
}
indicatorOptions = indicatorOptions.concat([{
  label:'http错误次数',
  value:{
    viewKey:'error_count',
    category:'httperror',
    urlName:'errorrate',
    statusCode:400
  }
},{
  label:'http错误率',
  value:{
    viewKey:'error_rate',
    category:'httperror',
    urlName:'errorrate',
    statusCode:400
  }
},{
  label:'网络错误次数',
  value:{
    viewKey:'error_count',
    category:'networkerror',
    urlName:'errorrate',
    errorCode:0
  }
},{
  label:'网络错误率',
  value:{
    viewKey:'error_rate',
    category:'networkerror',
    urlName:'errorrate',
    errorCode:0
  }
},{
  label:'平均响应时间',
  value:{
    viewKey:'avg_resp',
    category:'httptransaction',
    classifyKeyField:'time',
    classifyCountField:'num',
    urlName:'httptransaction'
  }
},{
  label:'吞吐量',
  value:{
    viewKey:'thp',
    category:'httptransaction',
    classifyKeyField:'time',
    classifyCountField:'num',
    urlName:'httptransaction'
  }
},{
  label:'传输数据量',
  value:{
    viewKey:'total_receive_size',
    category:'httptransaction',
    classifyKeyField:'receive',
    classifyCountField:'num',
    urlName:'httptransaction'
  }
}])
indicatorOptions.forEach((i,n) => {
  i.value.exportKey = (n+1)*100
})
export default indicatorOptions
